package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import net.bytebuddy.implementation.bind.annotation.Empty;

/**
 * <p>
 * NHISS答案
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_nhissAnswer")
@ApiModel(value="NhissAnswer对象", description="NHISS答案")
public class NhissAnswer extends Model<NhissAnswer> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "答案json")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "总分")
    @TableField("sum")
    private Integer sum;

    @ApiModelProperty(value = "病历id")
    @TableField("dcid")
    private Integer dcid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
